<?php

// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------

return [
    'default' => env('cache.driver', 'redis'),
    'stores'  => [
        'file' => [
            'type'       => 'File',
            'path'       => '',
            'prefix'     => '',
            'expire'     => 0,
            'tag_prefix' => 'tag:',
            'serialize'  => [],
        ],
        'redis' => [
            'type'       => 'redis',
            'host'       => env('redis.host', '127.0.0.1'),
            'port'       => env('redis.port', 6379),
            'password'   => env('redis.password', 'O9q5m3hcmp0RgHT8'),
            'select'     => env('redis.select', 0),
            'timeout'    => env('redis.timeout', 0),
            'expire'     => env('redis.expire', 0),
            'persistent' => env('redis.persistent', false),
            'prefix'     => env('redis.prefix', 'ns:'),
            'tag_prefix' => env('redis.tag_prefix', 'ns:tag:'),
            'serialize'  => env('redis.serialize', [])
        ]
    ]
];
